package auctionhaus

import grails.converters.JSON
import grails.plugin.jms.Queue

class ListeningService {

	static exposes = ['jms']
	
	static def lastMessageReceived;

	@Queue(name = 'queue')
	def onMessage(message) {
		def listing = message
		print 'Listing completed message received ' + listing
		lastMessageReceived = message;
		return null
	}
}
